Buttons and Numbers

3d

Board Regular
Joined
May 23, 2002
Messages
86
0o0o0o been a while since I was here last and its all had a lick of paint and a spring clean very nice...........well back to the quest!...What I am trying to do is make a simple stock list what I want to do is have a button on the screen so you can click it once and in the column a number 1 is added click again and it goes up to number 2 etc. and then I can have a seperate button to resest and clear the cells with the numbers in. I went one way with this but got lost :confused: any help is appreciated

regards

3D :)
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Something like this

Sub test()

ActiveCell = ActiveCell + 1
End Sub


What cells do you want to clear? i.e. range
 
Upvote 0
instead of an active cell being selected how could I make it an actual cell ie D4 for instance? the range would be the numbers that are added in that column ie all of column d
 
Upvote 0
Try this;

Sub test()
Range("D4") = Range("D4") + 1
End Sub


'This will clear all of column D

Sub col_d_clear()
Range("D:D").ClearContents

End Sub


Sub clear()
'This will clear from D2 to the last cell with data in column D

Range("D2", Range("D65536").End(xlUp)).ClearContents

End Sub
 
Upvote 0

Forum statistics

Threads
1,215,372
Messages
6,124,537
Members
449,169
Latest member
mm424

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top